<template>
    <div>
        <navbar></navbar>
        <div class="coverParent">
            <itemCover v-for="(item, itemIndex) in result" :nowGenre_Item="item"
                       :key="itemIndex" class="cover"></itemCover>
        </div>
    </div>
</template>

<script>
    import navbar from "@/components/common/navbar";
    import itemCover from "@/components/common/itemCover";

    export default {
        name: "userCollect",
        components: {navbar, itemCover},
        data() {
            return {
                result: []
            }
        },
        mounted: function () {
            this.init()
        },
        methods: {
            init() {
                this.result = JSON.parse(this.$route.query.collect)
            }
        }
    }
</script>


<style lang="less" scoped>

    .coverParent {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: baseline;

        .cover {
            width: 45%;
            margin: 1.39vw 0;
        }
    }
</style>